import request from "@/plugin/axios";

const BASE_URL = "dtmg/dtDatasource";

export function PageList(data) {
  return request({
    url: BASE_URL + "/pageList",
    method: "get",
    params: data,
  });
}

export function DelData(id) {
  return request({
    url: BASE_URL + "/delete/" + id,
    method: "delete",
  });
}

export function Detail(id) {
  return request({
    url: BASE_URL + "/detail/" + id,
    method: "get",
  });
}

export function SaveData(data) {
  return request({
    url: BASE_URL + "/save",
    method: "post",
    data,
  });
}
 
export function TestDt(data) {
  return request({
    url: BASE_URL + "/test",
    method: "post",
    data,
  });
}

export function SelectList() {
  return request({
    url: BASE_URL + "/selectList",
    method: "get"
  });
}

export function DbTables(id) {
  return request({
    url: BASE_URL + "/dbTables/" + id,
    method: "get",
  });
}